﻿using ClassLibrary.SignalType;

namespace ClassLibrary.Communication
{
    /// <summary>
    /// @Author Marcin Król
    /// enables user to send egress data and read received data
    /// use CommunicationService to get Port objects
    /// </summary>
    public interface Port
    {
        event HandleSimulationEvents DataReceived;

        int Id
        {
            get;
        }

        void Send(Data data);
        Data Read();        
    }
}
       
